package cn.rc.rcsystem.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author director
 * @since 2022-12-09
 */
@TableName("car_rental_user")
public class CarRentalUser extends Model<CarRentalUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private Long userId;
    @TableField("drive_certificates")
    private String driveCertificates;
    @TableField("vehicle_license")
    private String vehicleLicense;
    @TableField("driving_experience")
    private Integer drivingExperience;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDriveCertificates() {
        return driveCertificates;
    }

    public void setDriveCertificates(String driveCertificates) {
        this.driveCertificates = driveCertificates;
    }

    public String getVehicleLicense() {
        return vehicleLicense;
    }

    public void setVehicleLicense(String vehicleLicense) {
        this.vehicleLicense = vehicleLicense;
    }

    public Integer getDrivingExperience() {
        return drivingExperience;
    }

    public void setDrivingExperience(Integer drivingExperience) {
        this.drivingExperience = drivingExperience;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CarRentalUser{" +
        ", id=" + id +
        ", userId=" + userId +
        ", driveCertificates=" + driveCertificates +
        ", vehicleLicense=" + vehicleLicense +
        ", drivingExperience=" + drivingExperience +
        "}";
    }
}
